package com.wanjia.bpsapi.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author wyn
 * @since 2023-02-13
 */
@TableName("wj_store_product")
@Schema(title ="WjStoreProduct对象", description = "商品表")
@Data
public class WjStoreProduct implements Serializable {

    @Schema(title = "商品id")
    @TableId(type = IdType.INPUT)
    private Integer id;

    @Schema(title = "商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)")
    private Integer merId;

    @Schema(title = "商品图片")
    private String image;

    @Schema(title = "推荐图")
    private String recommendImage;

    @Schema(title = "轮播图")
    private String sliderImage;

    @Schema(title = "溯源图")
    private String traceabilityImage;

    @Schema(title = "商品名称")
    private String storeName;

    @Schema(title = "商品简介")
    private String storeInfo;

    @Schema(title = "关键字")
    private String keyword;

    @Schema(title = "商品条码（一维码）")
    private String barCode;

    @Schema(title = "分类id")
    private String cateId;

    @Schema(title = "商品价格")
    private BigDecimal price;

    @Schema(title = "会员价格")
    private BigDecimal vipPrice;

    @Schema(title = "市场价")
    private BigDecimal otPrice;

    @Schema(title = "邮费")
    private BigDecimal postage;

    @Schema(title = "单位名")
    private String unitName;

    @Schema(title = "排序")
    private Integer sort;

    @Schema(title = "销量")
    private Integer sales;

    @Schema(title = "库存")
    private Long stock;

    @Schema(title = "状态（0：未上架，1：上架）")
    private Boolean isShow;

    @Schema(title = "是否热卖")
    private Boolean isHot;

    @Schema(title = "是否优惠")
    private Boolean isBenefit;

    @Schema(title = "是否精品")
    private Boolean isBest;

    @Schema(title = "是否新品")
    private Boolean isNew;

    @Schema(title = "商品是否是虚拟商品")
    private Boolean isVirtual;

    @Schema(title = "虚拟商品类型")
    private Boolean virtualType;

    @Schema(title = "添加时间")
    private Integer addTime;

    @Schema(title = "是否包邮")
    private Integer isPostage;

    @Schema(title = "是否删除")
    private Integer isDel;

    @Schema(title = "商户是否代理 0不可代理1可代理")
    private Integer merUse;

    @Schema(title = "获得积分")
    private BigDecimal giveIntegral;

    @Schema(title = "成本价")
    private BigDecimal cost;

    @Schema(title = "秒杀状态 0 未开启 1已开启")
    private Integer isSeckill;

    @Schema(title = "砍价状态 0未开启 1开启")
    private Integer isBargain;

    @Schema(title = "是否优品推荐")
    private Boolean isGood;

    @Schema(title = "是否单独分佣")
    private Boolean isSub;

    @Schema(title = "是否开启会员价格")
    private Boolean isVip;

    @Schema(title = "虚拟销量")
    private Integer ficti;

    @Schema(title = "浏览量")
    private Integer browse;

    @Schema(title = "商品二维码地址(用户小程序海报)")
    private String codePath;

    @Schema(title = "淘宝京东1688类型")
    private String soureLink;

    @Schema(title = "主图视频链接")
    private String videoLink;

    @Schema(title = "运费模板ID")
    private Integer tempId;

    @Schema(title = "规格 0单 1多")
    private Boolean specType;

    @Schema(title = "活动显示排序1=秒杀，2=砍价，3=拼团")
    private String activity;

    @Schema(title = "商品SPU")
    private String spu;

    @Schema(title = "标签ID")
    private String labelId;

    @Schema(title = "复制口令")
    private String commandWord;

    @Schema(title = "推荐商品id")
    private String recommendList;

    @Schema(title = "保质期(天)---新增")
    private Integer qualityGuaranteePeriod;

    @Schema(title = "供应商ID--新增")
    private Integer supplierId;
}
